<h2>List Item</h2>
<div id="recForm">
<?php if (count($this->records)):?>
<div id="pager">
	Pages: <?= $this->pages ?>
</div>
<form action="
	<?php echo $this->url(array(), 'admin-catalog-delete');?>
	">
	<table border='1'>
		<tr>
			<th></th>
			<th class="key">Item ID<br />
				[<a href="<?= $this->url(array('sort' => 'RecordID', 'dir' => 'asc'), 
						'admin-catalog-index') ?>">&uArr;</a>
				<a href="<?= $this->url(array('sort' => 'RecordID', 'dir' => 'desc'), 
						'admin-catalog-index') ?>">&dArr;</a>]
			</th>
			<th  class="key">Title<br />
				[<a href="<?= $this->url(array('sort' => 'Title', 'dir' => 'asc'), 
						'admin-catalog-index') ?>">&uArr;</a>
				<a href="<?= $this->url(array('sort' => 'Title', 'dir' => 'desc'), 
						'admin-catalog-index') ?>">&dArr;</a>]
			</th>
			<th  class="key">Denomination<br />
				[<a href="<?= $this->url(array('sort' => 'Denomination', 'dir' => 'asc'), 
						'admin-catalog-index') ?>">&uArr;</a>
				<a href="<?= $this->url(array('sort' => 'Denomination', 'dir' => 'desc'), 
						'admin-catalog-index') ?>">&dArr;</a>]
			</th>
			<th  class="key">Country<br />
				[<a href="<?= $this->url(array('sort' => 'CountryID', 'dir' => 'asc'), 
						'admin-catalog-index') ?>">&uArr;</a>
				<a href="<?= $this->url(array('sort' => 'CountryID', 'dir' => 'desc'), 
						'admin-catalog-index') ?>">&dArr;</a>]
			</th>
			<th  class="key">Grade<br />
				[<a href="<?= $this->url(array('sort' => 'GradeID', 'dir' => 'asc'), 
						'admin-catalog-index') ?>">&uArr;</a>
				<a href="<?= $this->url(array('sort' => 'GradeID', 'dir' => 'desc'), 
						'admin-catalog-index') ?>">&dArr;</a>]
			</th>
			<th  class="key">Year<br />
				[<a href="<?= $this->url(array('sort' => 'Year', 'dir' => 'asc'), 
						'admin-catalog-index') ?>">&uArr;</a>
				<a href="<?= $this->url(array('sort' => 'Year', 'dir' => 'desc'), 
						'admin-catalog-index') ?>">&dArr;</a>]
			</th>
			<th></th>
			<th></th>
		</tr>
		<?php foreach ($this->records as $x): ?>
			<tr>
				<td><input type="checkbox" name="ids[]" value="<?=$x['RecordID']?>"></td>
				<td><?=$x['RecordID']?></td>
				<td><?=$x['Title']?></td>
				<td><?=sprintf('%1.2f', $x['Denomination'])?></td>
				<td><?=$x['Zend_Model_Country']['CountryName']?></td>
				<td><?=$x['Zend_Model_Grade']['GradeName']?></td>
				<td><?=$x['Year']?></td>
				<td><a href="<?=$this->url(array(
											'id' => $x['RecordID']),
											 'admin-catalog-display') ?>">DISPLAY</a></td>
				<td><a href="<?=$this->url(array(
											'id' => $x['RecordID']), 
											 'admin-catalog-update') ?>">UPDATE</a></td>
			</tr>
		<?php endforeach; ?>
			<tr>
				<td colspan="7">
					<input type="submit" name="submit" value="delete">
				</td>
				<td colspan="2" align="center">
					<a href="<?php echo $this->url(array(), 'admin-fulltext-index-create') ?>">
					UPDATE INDEX
					</a> 
				</td>
			</tr>
	</table>
</form>
</div>
<div id="pager">
	Pages: <?= $this->pages ?>
</div>

<?php else :?>
	<h2>Empty List</h2>
<?php endif; ?>
